package com.example.test.dialogfactory;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import androidx.appcompat.app.AppCompatActivity;
import easier.app.x.view.EditInputManager;
import easier.view.plate.view.PlateViewManager;

public class MainActivity3 extends AppCompatActivity {

    private EditText mInput;

    public static void start( Context context ) {

        Intent starter = new Intent( context, MainActivity3.class );
        context.startActivity( starter );
    }

    @Override
    protected void onCreate( Bundle savedInstanceState ) {

        super.onCreate( savedInstanceState );
        setContentView( R.layout.activity_main3 );

        View view = findViewById( R.id.plateView );
        View root = findViewById( R.id.root );
        ViewGroup container = findViewById( R.id.container );
        new PlateViewManager( this, root, container );
        initView();
    }

    private void initView() {

        mInput = (EditText) findViewById( R.id.input );
        EditInputManager.setInputPlateNo( mInput );
    }
}